package com.ym.medical.domain.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BaseEntity;
import com.ym.medical.enums.TaglibraryTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * 自定义标签库对象 custom_taglibrary
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("自定义标签库-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "custom_taglibrary")
public class CustomTaglibraryEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 标签名称
	 */
	@ApiModelProperty("标签名称")
	private String tglbName;

	/**
	 * 标签分类(01-评价)
	 */
	@ApiModelProperty("标签分类(01-评价)")
	@JsonSerialize(converter = TaglibraryTypeEnum.Covert.class)
	private String tglbType;
	/**
	 * 标签等级
	 */
	@ApiModelProperty("标签等级")
	private String tglbLevel;

}
